package com.example.conf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 团购信息表
 * </p>
 *
 * @author wpdcn
 * @since 2020-04-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("shop_group_buy_info")
@ApiModel(value="ShopGroupBuyInfoEntity对象", description="团购信息表")
public class ShopGroupBuyInfoEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Column(comment = "主键id")
    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Column(comment = "团购活动id")
    @ApiModelProperty(value = "团购活动id")
    private Long campaignId;

    @Column(comment = "团内人数")
    @ApiModelProperty(value = "团内人数")
    private Integer groupMemberNum;

    @Column(comment = "0：未团拼成功；1已团拼成功")
    @ApiModelProperty(value = "0：未团拼成功；1已团拼成功")
    private String status;

    @Column(comment = "团购轮次")
    @ApiModelProperty("团购轮次")
    private Integer turn;


}
